﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class payment : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
      
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        Response.Redirect("peorder.aspx");
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        int selectedValue = RadioButtonList1.SelectedIndex;

        if (RadioButtonList1.SelectedIndex == 0)
        {
            Response.Redirect("MasterCard.aspx");
        }

        if (RadioButtonList1.SelectedIndex == 1)
        {
            Response.Redirect("VISA.aspx");
        }

        if (RadioButtonList1.SelectedIndex == 2)
        {
            Response.Redirect("Paypal.aspx");
        }

        if (RadioButtonList1.SelectedIndex == 3)
        {
            Response.Redirect("AmericanExpress.aspx");
        }
        
    }
}
   